package com.example.travel.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author : LinQingLiang
 * @file : Cart.java
 * @Since : 2023/2/23 10:54
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("cart")
public class Cart {

    @TableId(type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty("景点id")
    private Integer spotId;
    @ApiModelProperty("用户id")
    private Integer userId;
    @ApiModelProperty("库存数量")
    private Integer num;
    @ApiModelProperty("添加时间")
    private String time;

}
